﻿using System;
using System.ComponentModel;
using System.Data;
using System.Windows;
using System.Windows.Media;
using WPFExcelReport.Helpers;
namespace WPFExcelReport
{
    public partial class TYGRCS : ViewBase
    { 
        public TYGRCS()
        {
            if (DesignerProperties.GetIsInDesignMode(this))
                return;
            MV = new VICC_AV95RULES();
            DataContext = MV;
            InitializeComponent();
        }

        public void Load()
        { 
            ((VICC_AV95RULES)MV).Load();
            vwMaster.View.MoveCurrentToFirst();
        }
        public override void Window_Loaded(object sender, RoutedEventArgs e)
        {
            if (DesignerProperties.GetIsInDesignMode(this))
                return;
            if (IsLoaded)
                return;
            base.Window_Loaded(sender, e);
            Load();
        }
        SolidColorBrush RedBrush = new SolidColorBrush();
        SolidColorBrush BlackBrush = new SolidColorBrush();  
    }
}
